package com.sanjiayi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sanjiayi.mapper.KcMapper;
import com.sanjiayi.pojo.Kc;
import com.sanjiayi.service.KcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86191
* @description 针对表【tb_kc】的数据库操作Service实现
* @createDate 2025-07-07 20:39:22
*/
@Service
public class KcServiceImpl extends ServiceImpl<KcMapper, Kc>
    implements KcService{
    @Autowired
    private KcMapper kcMapper;
    @Override
    public Kc findById(Integer id) {
        Kc kc = kcMapper.selectById(id);
        return kc;
    }

    @Override
    public int add(Kc kc) {
        int insert = kcMapper.insert(kc);
        return insert;
    }
}




